{% extends "base.html" %}

{% block content %}

<!-- content - start -->
<section class="section">

	<!--今日菜谱 start-->
	<div>
		<p>今日菜谱</p>
		<div class="content love clear">
			{% for i in recommended %}
			<div>
				<a href="/food/{{i.classid}}/{{i.id}}/index.html"><img src="{{i.pic}}"></a>
				<p><a href="/food/{{i.classid}}/{{i.id}}/index.html">【{{i.name}}】{{i.content|truncatewords:10}}</a></p>
				<p>
					{% for a in i.tag %}
					<a href="/search?name={{a}}" target="_blank">{{a}}</a>&nbsp;
					{% endfor %}
				</p>
			</div>
			{% endfor %}
		</div>
	</div>
	<!--今日菜谱 END-->
	<div>
		<p>猜你喜欢</p>
		<div class="content love clear">
			{% for c in like %}
			<div>
				<a href="/food/{{c.classid}}/{{c.id}}/index.html"><img src="{{c.pic}}"></a>
				<p>
					<a href="/food/{{c.classid}}/{{c.id}}/index.html">【{{c.name}}】{{c.content|truncatewords:10}}</a></p>
				<p>
				{% for a in c.tag %}
				<a href="/search?name={{a}}" target="_blank">{{a}}</a>&nbsp;
				{% endfor %}
			</div>
			{% endfor %}
		</div>
	</div>

</section>

{% endblock %}